﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="Member" Object="Member" InnerID="Request.QueryString['ID']" Validate="True" />
<section data-page="member_view" data-title="会员详情" data-lang="<%=ContentLang%>">
	<dl class="path1">
		<dt><span>您的位置：</span><a href="list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">会员列表</a> → <b><%=Member[UserNickname]%></b></dt>
	</dl>
	<form class="post">
		<div class="post-body">
			<div class="ali-tabs" data-event="click">
				<div class="ali-tabs-header">
					<div class="ali-tabs-nav-container">
						<ul>
							<li class="ali-active"><a>会员详情</a></li>
							<li><a href="stat_member_one.aspx?Lang=<%=ContentLang%>&ID=<%=Member[InnerID]%>" target="ali-navtab">会员销量统计</a></li>
							<li><a href="stat_order_one.aspx?Lang=<%=ContentLang%>&ID=<%=Member[InnerID]%>" target="ali-navtab">课程销量统计</a></li>
							<li><a href="stat_money.aspx?Lang=<%=ContentLang%>&ID=<%=Member[InnerID]%>" target="ali-navtab">收入统计</a></li>
						</ul>
					</div>
				</div>
				<div class="ali-tabs-body">
					<div class="ali-tabs-panel">
						<div class="section1">
							<h1>基本信息</h1>
							<table class="post-table margin2">
								<tr>
									<th>会员编号：</th>
									<td><%=Member[No]%></td>
								</tr>
								<tr>
									<th>会员等级：</th>
									<td class="<%=ContentLang%>Font">
										<ali:Get Object="MemberLevel" Guid="Member[LevelID]">
											<%=Name%>
										</ali:Get>
									</td>
								</tr>
								<tr>
									<th>是否过期：</th>
									<td>
										<%If Convert.ToDateTime(Member[ExpiredTime]) > DateTime.Now%>
											<%=Convert.ToDateTime(Member[ExpiredTime]).Subtract(DateTime.Now).Days%> 天后过期
										<%Else%>
											已过期
										<%EndIf%>
									</td>
								</tr>
							</table>
						</div>

						<div class="section1">
							<h1>用户信息</h1>
							<table class="post-table margin2">
								<tr>
									<th>用户昵称：</th>
									<td><img src="<%=Member[UserHead]%>"><%=Member[UserNickname]%></td>
								</tr>
								<tr>
									<th>用户账号：</th>
									<td><%=Member[UserName]%></td>
								</tr>
								<tr>
									<th>用户真名：</th>
									<td class="<%=ContentLang%>Font"><%=Member[UserRealName]%></td>
								</tr>
								<tr>
									<th>用户手机：</th>
									<td><%=Member[UserMobile]%></td>
								</tr>
							</table>
						</div>

						<%If !Convert.IsDBNull(Member[AgentID])%>
							<div class="section1">
								<h1>代理信息</h1>
								<table class="post-table margin2">
									<tr>
										<th>代理昵称：</th>
										<td><img src="<%=Member[AgentHead]%>"><%=Member[AgentNickname]%></td>
									</tr>
									<tr>
										<th>代理账号：</th>
										<td><%=Member[AgentName]%></td>
									</tr>
								</table>
							</div>
						<%EndIf%>
					</div>
				</div>
				<div class="ali-tabs-bottom"><b></b></div>
			</div>
		</div>
	</form>
</section>